package cn.ante.basic.constant;

public class BaseContants {
    /**
    * @Description: 注册登录相关的常量
    * @Author: Nai
    * @Version: 1.0
    * @Date:  2022/7/13 6:49
    */
    public class VerifyCodeConstant{
        public static final String BUSINESS_REGISTER_PREFIX = "register";
        public static final String BUSINESS_LOGIN_PREFIX = "login";
        public static final String BUSINESS_BINDER_PREFIX = "binder";
    }

    /**
    * @Description:微信第三方登录相关的常量
    * @Author: Nai
    * @Version: 1.0
    * @Date:  2022/7/13 6:49
    */
    public class WechatCodeConstant{
        // 获取access_token和openId 用到的常量appid和密钥
        public static final String APPID = "wxd853562a0548a7d0";
        public static final String SECRET = "4a5d5615f93f24bdba2ba8534642dbb6";
        // 获取code的地址，
        public static final String URL = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code";
        // 获取微信个人信息的地址
        public static final String OPENID = "https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID";
    }

    public class VerifyShopSettlement{
        /**
         * 正则表达式：验证手机号
         */
        public static final String REGEX_MOBILE = "^((13[0-9])|(15[^4,\\D])|(16[0-9])|(18[0-9])|(17[0-9]))\\d{8}$";
        /**
         * 正则表达式：验证邮箱
         */
        public static final String REGEX_EMAIL = "^[a-zA-Z0-9][\\w\\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\\w\\.-]*[a-zA-Z0-9]\\.[a-zA-Z][a-zA-Z\\.]*[a-zA-Z]$";

    }

    public class ImageAudit{
        public static final String CALL_ADDRESS = "http://123.207.27.208";
    }
}
